﻿
@{
    ViewData["Title"] = "Index";
}

    <table class="table table-striped">
        <thead>
        <th>编号</th>
        <th>名称</th>
        <th>类别</th>
        <th>价格</th>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.ProductId</td>
                    <td>@item.ProductName</td>
                    <td>@item.Category.CategoryName</td>
                    <td>@item.ProductPrice</td>

                </tr>
            }


        </tbody>
    </table>

